<%--
  Created by IntelliJ IDEA.
  User: bangbang
  Date: 2020/5/14
  Time: 19:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>登录界面</title>
    <style type="text/css">
        body{
            background: #ADD8E6;
        }
        table{
            width: 300px;
            height: 200px;
            border-spacing:0;
            border-radius: 15px;
            overflow: hidden;
            position:absolute;
            left: 50%;
            top: 50%;
            margin: -100px -100px
        }
        #a{
            background-color: gray;
            color: white;
        }
        #b{
            background-color: white;
        }
        #c{
            height: 30px;
            background-color: white;
        }
    </style>
</head>
<body>
<form action="${pageContext.request.contextPath}/login/login" method="post">
    <table align="center" cellpadding="10" border="0">
        <tr align="center" id="a">
            <td>系统登陆</td>
        </tr>
        <p id="b" style="color: red" shiro:notAuthenticated="" align="center">${error}</p>
        <tr id="b" align="center">
            <td>用户名:<input type="text" name="username"></td>
        </tr>
        <tr id="b" align="center">
            <td>密&nbsp;&nbsp;&nbsp;码&nbsp;:<input type="password" name="pwd"></td>
        </tr>
        <tr id="b">
            <td align="center"><input type="submit" value="登录" id="c">&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" id="c"></td>
        </tr>
    </table>
</form>
</body>
</html>
